package com.kaiwukj.android.ufamily.mvp.ui.page.home.message.add;

import androidx.annotation.IntDef;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.kaiwukj.android.ufamily.mvp.http.entity.result.ChatSearchGroupResult;
import com.kaiwukj.android.ufamily.mvp.http.entity.result.ChatSearchPersonResult;

import java.util.List;

public class MessageChatSearchEntity implements MultiItemEntity {

    public static final int PERSON = 1;
    public static final int GROUP = 2;


    @IntDef({PERSON, GROUP})
    public @interface ResultType {
    }

    private int type;
    private List<ChatSearchPersonResult> personResults;
    private List<ChatSearchGroupResult> groupResults;

    public int getType() {
        return type;
    }

    public void setType(@ResultType int type) {
        this.type = type;
    }

    public List<ChatSearchPersonResult> getPersonResults() {
        return personResults;
    }

    public void setPersonResults(List<ChatSearchPersonResult> personResults) {
        this.personResults = personResults;
    }

    public List<ChatSearchGroupResult> getGroupResults() {
        return groupResults;
    }

    public void setGroupResults(List<ChatSearchGroupResult> groupResults) {
        this.groupResults = groupResults;
    }

    @Override
    public int getItemType() {
        return type;
    }
}
